﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RPGXEngine.IO;

namespace RPGXEngine.Factories
{
    public static class DirectoryFactory
    {
        #region Static Properties

        public static IDirectoryRepository DirectoryRepository
        {
            get { return DirectoryFactory._directoryRepository; }
            set { DirectoryFactory._directoryRepository = value; }
        }
        private static IDirectoryRepository _directoryRepository = null;

        #endregion

        #region Public Static Methods

        public static void Set(IDirectoryRepository logger)
        {
            DirectoryFactory.DirectoryRepository = logger;
        }

        public static IDirectoryRepository Get()
        {
            return DirectoryFactory.DirectoryRepository ?? new DirectoryRepository();
        }

        #endregion
    }
}
